package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    List<ApArticle> load(@Param("loadType") Short loadType,@Param("articleHomeDto") ArticleHomeDto articleHomeDto);

    /**
     * 查询当前时间前五天的文章列表
     * @param
     * @return
     */
    public List<ApArticle> before5Day(@Param("dayParam") Date dayParam);

}
